PROJECT( image-filters )

FIND_PACKAGE( Qt4 REQUIRED )
INCLUDE( ${QT_USE_FILE} )

SET( SRCS
     main.cpp
     mainwindow.cpp
     filter.cpp
     linearfilter.cpp
     medianfilter.cpp
     kuwaharafilter.cpp )
SET( MOCS
     mainwindow.h
     filter.h
     linearfilter.h
     medianfilter.h
     kuwaharafilter.h )
SET( RCCS image-filters.qrc )

ADD_DEFINITIONS( -Wall )
QT4_ADD_RESOURCES( RCC_SRCS ${RCCS} )
QT4_WRAP_CPP( MOC_SRCS ${MOCS} )
ADD_EXECUTABLE( ${PROJECT_NAME} ${SRCS} ${MOC_SRCS} ${RCC_SRCS} )
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${QT_LIBRARIES} )

ENABLE_TESTING()
ADD_TEST( run ${EXECUTABLE_OUTPUT_PATH}/${PROJECT_NAME} )
